<!DOCTYPE html>
<!-- saved from url=(0040)https://simpl.info/getusermedia/sources/ -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">




<meta name="description" content="Simplest possible examples of HTML, CSS and JavaScript.">
<meta name="author" content="//samdutton.com">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta itemprop="name" content="simpl.info: simplest possible examples of HTML, CSS and JavaScript">
<meta itemprop="image" content="/images/icons/icon192.png">
<meta id="theme-color" name="theme-color" content="#fff">

<link rel="icon" href="https://simpl.info/images/icons/icon192.png">

<!--<base target="_blank">--><base href="." target="_blank">


<title>mediaDevices.enumerateDevices()</title>

<link rel="stylesheet" href="./dd_files/main.css">

<style>
h1 {
  margin: 0 0 24px 0;
}
select {
  width: 150px;
}
video {
  margin: 10px 0 0 0;
}
</style>

</head>

<body>

<div id="container">

  <h1><a href="https://simpl.info/index.html" title="simpl.info home page">simpl.info</a> mediaDevices.<wbr>enumerateDevices()</h1>

  <div class="select">
    <label for="audioSource">Audio source: </label><select id="audioSource"></select>
  </div>

  <div class="select">
    <label for="videoSource">Video source: </label><select id="videoSource"></select>
  </div>

  <video autoplay="" muted="" playsinline=""></video>

  <script async="" src="./dd_files/main.js"></script>

  <p>For more information see <a href="https://www.html5rocks.com/en/tutorials/getusermedia/intro/" title="Media capture article by Eric Bidelman on HTML5 Rocks">Capturing Audio &amp; Video in HTML5</a> on HTML5 Rocks.</p>

<a href="https://github.com/samdutton/simpl/blob/gh-pages/getusermedia/sources/js/main.js" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a>

</div>




</body></html>